/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function checkPassword(form) {
   var password = form[form.id + ":password"].value;
   var passwordConfirm = form[form.id + ":passwordConfirm"].value;

   if(password === passwordConfirm)
      form.submit();
   else
      alert("两次输入的密码不匹配");
}



